package com.yuewen.mongodb;

import com.yuewen.mongodb.dao.MongoDao;
import com.yuewen.mongodb.entity.User;

/**
 * Created by francis on 2017/3/18.
 */
public class Startup {
    public static void main(String[] args) {
        User user = new User();
        user.setName("francis");
        user.setId("2342sdfsdfsdfsdf");
        user.setNum(123);
//        new MongoDao().createHelloKitty(user);
        System.out.println(new MongoDao().getHelloKittyByName(user.getName()).getId());
//        System.out.println(new MongoDao().deleteByName(user.getName()));
        System.out.println("hi");
    }
}
